package com.learnspringcloud.product.enums;

import lombok.Getter;

/**
 * @author Lin
 * @date 2018/9/20 0020
 */
@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    PRODUCT_NOT_EXISTS(1, "商品不存在"),
    PRODUCT_STOCK_ERROR(2, "库存错误")
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
